//
//  RootViewController.m
//  Days
//
//  Created by lanou3g on 16/1/6.
//  Copyright © 2016年 dss. All rights reserved.
//

#import "RootViewController.h"
#import "JokeViewController.h"
#import "DateViewController.h"
#import "WeatherViewController.h"
#import "PuzzleViewController.h"
#import "FontViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    JokeViewController *jokeVC = [[JokeViewController alloc]init];
    UINavigationController *jokeNC = [[UINavigationController alloc]initWithRootViewController:jokeVC];
    jokeVC.title = @"笑话";
    
    DateViewController *dateVC = [[DateViewController alloc]init];
    UINavigationController *dateNC = [[UINavigationController alloc]initWithRootViewController:dateVC];
    dateVC.title  = @"日历";
    
    WeatherViewController *weatherVC = [[WeatherViewController alloc]init];
    UINavigationController *weatherNC = [[UINavigationController alloc]initWithRootViewController:weatherVC];
    weatherVC.title  =@"天气";
    
    PuzzleViewController *puzzleVC = [[PuzzleViewController alloc]init];
    UINavigationController *puzzleNC = [[UINavigationController alloc]initWithRootViewController:puzzleVC];
    puzzleVC.title = @"拼图";
    
    
    FontViewController *fontVC =[[FontViewController alloc]init];
    UINavigationController *fontNC = [[UINavigationController alloc]initWithRootViewController:fontVC];
    fontVC.title = @"字体转换";
    
    
    self.viewControllers = @[jokeNC,dateNC,weatherNC,puzzleNC,fontNC];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
